﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace Himp.TaskScheduling.Migrations
{
    /// <inheritdoc />
    public partial class add_table_SamplePreparationResult : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "TS_SamplePreparationResult",
                schema: "TaskScheduling",
                columns: table => new
                {
                    Id = table.Column<string>(type: "nvarchar(450)", nullable: false),
                    SampeWay = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    SampeEqp = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    Begtime = table.Column<DateTime>(type: "datetime2", nullable: false),
                    Endtime = table.Column<DateTime>(type: "datetime2", nullable: true),
                    BottomCode61 = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    Weight61Bottles = table.Column<float>(type: "real", nullable: false),
                    BottomCode62 = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    Weight62Bottles = table.Column<float>(type: "real", nullable: false),
                    BottomCode31 = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    Weight31Bottles = table.Column<float>(type: "real", nullable: false),
                    BottomCode21 = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    Weight21Bottles = table.Column<float>(type: "real", nullable: false),
                    BottomCode22 = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    Weight22Bottles = table.Column<float>(type: "real", nullable: false),
                    TotalCoalSampleWeight = table.Column<float>(type: "real", nullable: false),
                    Weight6Rejects = table.Column<float>(type: "real", nullable: false),
                    Weight3Rejects = table.Column<float>(type: "real", nullable: false),
                    Weight2Rejects = table.Column<float>(type: "real", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_TS_SamplePreparationResult", x => x.Id);
                });
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "TS_SamplePreparationResult",
                schema: "TaskScheduling");
        }
    }
}
